﻿/*
 *Copyright(C) 2024 by CometGamming All rights reserved.
 *Unity版本：2022.3.33f1 
 *作者:程一峰  
 *创建日期: 2024-10-10 
 *模块说明：FSM状态机部分
 *版本: 0.1.0
*/
using Sirenix.OdinInspector;
using System;
using Warfare.FSM;

namespace GameAIStudy
{
    /// <summary>
    /// 节点行为：攻击；
    /// </summary>
    [Serializable]
    public class FSMNodeAction_Attack : FSMNodeAction
    {
        public override string ActionName => "攻击行为";

        [LabelText("中断条件：自身血量")]
        public float StopSelfHp = 0;

        [LabelText("中断条件：目标血量")]
        public float StopTargetHp = 0;

        public override E_MachineState Update(float deltaTime)
        {
            return E_MachineState.Running;
        }
    }
}
